import fetch from './fetch';


//登陆请求
//url 
export const loginApi=(data)=>{
    return fetch("/users/login",data,'POST')
}


export const registerApi=(data)=>{
    return fetch("/users/register",data,'POST')
}

export const getConf=()=>{
    return fetch("/",{},'GET')
}


export const getTarget=(data)=>{
    return fetch("/stockStat/getByTagId",data,'GET')
}
//Sapi/Login/index
export const getStockComment=(params)=>{
    return fetch("/stockStat/getCommonSelectStock",{stockTradeMins:JSON.stringify(params)},'POST', {'Content-Type':'application/x-www-form-urlencoded'})
}

//47.100.226.135:8061

//Sapi/Fav/list_fav
// stockStat/getCommonSelectStock
// market/getTimeSharingInfo?stockCodeInternal=688051&periodType=-1&_=1590809254050